package by.onlinernews.settings;

import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.view.MenuItem;
import by.onlinernews_0_1.R;

public class SettingsActivity extends ActionBarActivity {
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);	
		setContentView(R.layout.settings_graph);
		getSupportActionBar().setHomeButtonEnabled(true);
		getSupportActionBar().setDisplayHomeAsUpEnabled(true);
		getSupportFragmentManager().beginTransaction().replace(R.id.frgmSettings, new SettingsFragment()).commit();
		
	}
	@Override
    public boolean onOptionsItemSelected(MenuItem item) {
 
   	 switch(item.getItemId())
	  {
	  case android.R.id.home: {
		  onBackPressed();
		   }
	  }
        return super.onOptionsItemSelected(item);
    }
}
